package com.example.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shop.bean.CommentBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CommentMapper extends BaseMapper<CommentBean>{

    @Select("select * from view_comment where pid=#{pid}")
    List<CommentBean> listComment(@Param("pid") int pid);

    @Select("select * from view2_comment ")
    List<CommentBean> listComment2();
}
